package books4africa

//THIS IS AN INTEGRATION TEST

import static org.junit.Assert.*
import org.junit.*

class DonationListTests {

void testPersistence(){
    
            Donor testDonor = new Donor(userID:"hullabaloo@gmail.net", 
                password: "password", listOfCategories: null).save()
		
		  DonationList donList = new DonationList(quantity: 30, 
                      donor: testDonor, year: 2012, day: 2, month: 3).save()
		  
		DonationList retrieved = DonationList.get(donList.id);
		
		assertEquals(donList, retrieved);
		
	}
}
